{__NOLAYOUT__}
{include file="public/head"/}
<style>
	.panel{box-shadow: 0 0 2px 1px #eee;border-color:#eee;}
</style>
<div style="margin-top:100px;"></div>
<div class="hidden-xs" style="margin-top:100px;"></div>
<div class="container">
	<div class="row">
		<div class="col-md-4 col-xs-2"></div>
		<div class="col-md-4 col-xs-8">
			<div class="panel text-center">
				<div class="panel-heading bg-{eq name='code' value='1'}green{else/}red{/eq}">
					<h5 class="panel-title text-f">提示</h5>
				</div>
				<div class="panel-body">
					<h5>{$msg}</h5>
				</div>
				<div class="panel-footer bg-f text-6">
					<span id="wait" class="text-3"><?php echo($wait);?></span>秒后页面自动<a id="href" class="text-info" href="<?php echo($url);?>">跳转</a>
				</div>
			</div>
		</div>
		<div class="col-md-4 col-xs-2"></div>
	</div>
</div>
<script type="text/javascript">
    (function(){
        var wait = document.getElementById('wait'),
            href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    })();
</script>
{include file="public/footer"/}
{include file="public/foot"/}